package day20170406;

import org.junit.Test;

public class FunctionDemo01 {

	public static void main(String[] args) {
		FunctionDemo01 obj = new FunctionDemo01();
		int result = obj.mul(10,2);
		System.out.println(result);
	}
	
	//减法
	public int reduce(int a , int b){
		int sum = a - b;
		return sum;
	}
	
	//加法
	public int add(int a , int b){
		int sum = a + b;
		return sum;
	}
	
	//乘法
	public int mul(int a , int b){
		int sum = a * b;
		return sum;
	}
	
	//除法
	public int chuFa(int a , int b){
		int sum = a / b;
		return sum;
	}
}
